<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <jsp:include page="heading2.jsp"></jsp:include>
    <%@ page import="java.util.*,java.text.*"%>
    <%@page import="dao.*" %>
    <jsp:useBean id="dao" class="dao.OrderUtil" scope="page"></jsp:useBean>
<!DOCTYPE html >
<html>
<head>
<style type="text/css">
.div1{
	margin-left:10%;
	
}
td{
width:120px;
background:#ffcc66 ;
}
a{
text-decoration:none;
	
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改订单</title>
</head>
<body>
	<div class="div1">
	<%
	List list=dao.getOrder();
	Order order=null;
	for(int i=0;i<list.size();i++){
		order=(Order)list.get(i);	                             %>
		<div>
		<table>
			<tr><td>订单号：</td><td><%=order.getId() %></td></tr>
			<tr><td>用户名：</td><td><%=order.getOrder_id() %></td></tr>
			<tr><td>数量；</td><td><%=order.getQuantity()%></td></tr>
			<tr><td>总价：</td><td><%=order.getTotal()%></td></tr>
			<tr><td>电话</td><td><%=order.getPhone()%></td></tr>
			<tr><td>地址：</td><td><%=order.getAddress() %></td></tr>
			<tr><td><a href="servlet/DoDeleteOrder?id=<%=order.getId()%>">删除订单</a></td><td><a href="servlet/DoUpdateOrder?id=<%=order.getId()%>">修改订单</a></td></tr>
		</table>
		
	    
	<% 
	}
	%>
	
    
</div>
</div>
</body>
</html>